package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.SystemRoleMenu;
/**
* @author liaocheng
* @date 2024-11-01
* description:角色和菜单关联表
*/
@Data
public class SystemRoleMenuVo  extends BaseField {

    @ApiModelProperty(value = "自增编号")
    private Long id;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "菜单ID")
    private Long menuId;

    private List<Long> delIds;  //批量删除ids

    public static SystemRoleMenuVo invertToVo(SystemRoleMenu systemRoleMenu){
        SystemRoleMenuVo vo = new SystemRoleMenuVo();
        BaseField.invert(systemRoleMenu, vo);
        vo.setId(systemRoleMenu.getId());
        vo.setRoleId(systemRoleMenu.getRoleId());
        vo.setMenuId(systemRoleMenu.getMenuId());
        return vo;
    }
}
